package org.itboys.mobile.entity.mysql.wallet;

import org.itboys.mobile.common.SundayCommonConstants;
import org.itboys.mongodb.entity.BaseMySqlEntity;

import java.math.BigDecimal;
import java.util.Map;

/**
 * Created on 2017/10/12.
 * 钱包提现记录
 * @author 朱坤涛
 */

public class PearlWalletWithdrawRecord extends BaseMySqlEntity{
    private static final long serialVersionUID = -5745422834039670890L;
    private BigDecimal applyAmount;//提现金额
   // private BigDecimal ableAmounbt;//用户当前可提现金额
    private Long memberId;//用户Id
    private Map<String,Object> member;
    private Integer status;//处理状态,0,已申请，1
    private String bank;//填写银行
    private String name;//姓名
    private String account;//账户
    private String payNo;//付款流水号
    private String remark;//备注

    public PearlWalletWithdrawRecord(){}

    public PearlWalletWithdrawRecord(BigDecimal applyAmount, Long memberId, Map<String, Object> member, Integer status, String bank, String name, String account, String payNo, String remark) {
        this.applyAmount = applyAmount;
        this.memberId = memberId;
        this.member = member;
        this.status = status;
        this.bank = bank;
        this.name = name;
        this.account = account;
        this.payNo = payNo;
        this.remark = remark;
    }

    public void setApplyAmount(BigDecimal applyAmount) {
        this.applyAmount = applyAmount;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public void setMember(Map<String, Object> member) {
        this.member = member;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public void setBank(String bank) {
        this.bank = bank;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public void setPayNo(String payNo) {
        this.payNo = payNo;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }


    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public BigDecimal getApplyAmount() {
        return applyAmount;
    }

    public Long getMemberId() {
        return memberId;
    }

    public Integer getStatus() {
        return status;
    }

    public String getAccount() {
        return account;
    }

    public String getStatusStr(){
        if (this.status== SundayCommonConstants.INCOME_YSQ){
            return "待审核";
        }else if (this.status==SundayCommonConstants.INCOME_YBH){
            return "已驳回";
        }else {
            return "已通过";
        }
    }
}
